<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<meta http-equiv="pragma" content="no-cache" />
<meta http-equiv="cache-control" content="no-cache" />
<meta http-equiv="expires" content="0" />
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<div class="pageContent">
	<form method="post" action="update_UserInfo_dwz"
		class="pageForm required-validate"
		onsubmit="return validateCallback(this, dialogAjaxDone);">
		<div class="pageFormContent" layoutH="56">
			<p>
				<label>
					用户编号：
				</label>
				<input name="userInfo.userId" class="required digits textInput" type="text" size="30"
					value="${userInfo.userId}" readonly="readonly" />
			</p>
			<p>
				<label>
					用户姓名：
				</label>
				<input name="userInfo.userName" class="required textInput" type="text"
					size="30" alt="" value="${userInfo.userName}" />
				<input name="userInfo.userPassword" class="required" type="hidden"
					size="32" value="${userInfo.userPassword}" readonly="readonly" />
			</p>
			<p>
				<label>
					用户邮箱：
				</label>
				<input name="userInfo.email" class="required email textInput" type="text" size="30"
					alt="" value="${userInfo.email}" />
			</p>
			<p>
				<label>
					用户电话：
				</label>
				<input name="userInfo.telephone" class="required digits textInput" type="text"
					size="30" alt="" value="${userInfo.telephone}" />
			</p>
			<p>
				<label>
					证件号码：
				</label>
				<input name="userInfo.papersNum" class="required digits textInput" type="text"
					size="30" alt="" value="${userInfo.papersNum}" />
			</p>
			<p>
				<label>
					用户身份：
				</label>
				<select class="combox" name="userInfo.userStatus" class="required textInput">
					<s:if test='userInfo.userStatus == "读者"'>
						<option value="读者" selected="selected">
							读者
						</option>
						<option value="图书管理员">
							图书管理员
						</option>
						<option value="系统管理员">
							系统管理员
						</option>
					</s:if>
					<s:elseif test='userInfo.userStatus == "图书管理员"'>
					<option value="读者">
							读者
						</option>
						<option value="图书管理员" selected="selected">
							图书管理员
						</option>
						<option value="系统管理员">
							系统管理员
						</option>
					</s:elseif>
					<s:else>
						<option value="读者">
							读者
						</option>
						<option value="图书管理员" >
							图书管理员
						</option>
						<option value="系统管理员" selected="selected">
							系统管理员
						</option>
					</s:else>
				</select>
			</p>
		</div>
		<div class="formBar">
			<ul>
				<li>
					<div class="buttonActive">
						<div class="buttonContent">
							<button type="submit">
								保存
							</button>
						</div>
					</div>
				</li>
				<li>
					<div class="button">
						<div class="buttonContent">
							<button type="button" class="close">
								取消
							</button>
						</div>
					</div>
				</li>
			</ul>
		</div>
	</form>
</div>
